﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WeFrame.Core;
using WeFrame.Core.Common;

namespace WeFrame.Web.Admin
{
    public partial class Index : WeFrame.Core.UI.AdminPage
    {
        protected WeFrame.Core.Model.SystemAdminEntity model; //管理员信息

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                model = GetSystemAdmin();
            }
        }

        

        //安全退出
        protected void LinkButtonExit_Click(object sender, EventArgs e)
        {
            Session[WeFrameKey.SESSION_ADMIN] = null;//清空回话

            //清空cookie
            Utils.WriteCookie("AdminName", "WeFrame", -14400);
            Utils.WriteCookie("AdminPassword", "WeFrame", -14400);
            

            Response.Redirect("Login.aspx");

        }

    }
}